#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 5

void init(int A[],int len)
{
	for (int i = 0; i < len; i++)
		A[i] = 0;
}

void print(int A[], int len)
{
	for (int i = 0; i < len; i++)
		printf("%d ", A[i]);
	printf("\n");
}

void reverse(int A[], int len)
{
	int tmp;
	for (int i = 0, j = len - 1; j > i; i++, j--)
	{
		tmp = A[i];
		A[i] = A[j];
		A[j] = tmp;
	}
		
}
int main()
{
	int A[N] = { 1,2,3,4,5 };
	print(A, N);

	reverse(A, N);

	print(A, N);

	init(A,N);

	print(A, N);
	return 0;
}
